This project is about testing whether the weather has a say in the number of available parking spaces in Stavanger.
The weather data is collected from:
Norwegian klima service senter:
https://klimaservicesenter.no/observations/
Temperature and Precipitation from station id:SN44640.
Wind information from station id:SN44560. (consider changing...)
The parking data is collected from:
https://open.stavanger.kommune.no/dataset/stavanger-parkering/
More information on each parking lot:
https://stavanger-parkering.no/parkering/p-hus/
The available parking spaces goes down in bad weather.
A schema of correlation between the parking lots and the different weather aspects. We use data every day between 08:00 and 18:00.
This does not paint a clear picture of a correlation. But if we say values over 0.3 is a week correlation we have at least one number above that (Siddis and Air temperature). To inspect further we do linear regression on the data.
Three interactive regression plots for respectively Air temprure, Precipitation and wind speed. Siddis is set as standard for the regression graphs because it shows the most promising values in the correlation table, but feel free to change and inspect the other parking lots as well. Note. Forum and Parketten have some problems/anomalies in its data (see time graphs bellow)
As we can see the data for the air temperature do seam to go the oppose direction from what i expected. The available parking seam to go down in higher temperature (exept for Forum). For Precipitation and wind speed thay do not seam to follow tha same trend and som of them goes up and some goes down in higer/lower Precipitation and wind speed. This can chnage as time goes on and we collect more data. The weather unfortunately for this project seam to have bean fairly stable. To inspect even deeper a time plot for both the parking data and weather is plotted bellow.
I chose to use python 3 for the data collection because i was most familiar with it at the time when i started this project. Python is also a good language to use in this scenario since we are collecting from the web and errors can occur. The exception clause in python make it easy to collect these errors and make sure we do not have a crash if/when a unexpected error occurs.
I made my own scheduler instead of using soothing lake cron in linux. This was manly because i was personally interested and i culd easely used cron job instead since it runs on a linux server, The only advantage is that no alteration is required to run in an other os.